from selenium import webdriver
import time
class start:
    def __init__(self):
        self.op = webdriver.Firefox()
        self.op.get('http://172.16.0.105/TinyShop_v2.4/index.php?con=admin&act=login')
        self.op.maximize_window()
        self.op.find_element_by_xpath("//input[@name='name']").send_keys('admin')
        self.op.find_element_by_xpath("//input[@name='password']").send_keys('123456')
        self.op.find_element_by_xpath("//input[@name='verifyCode']").send_keys('aaaa')
        self.op.find_element_by_xpath("//input[@value='登 录']").click()
        time.sleep(1)
        self.op.find_element_by_xpath("//a[contains(text(),'其它配置')]").click()
